package com.ncepu.clubmanagement.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class MultiMediaFontOfAdd {
    private Integer clubId;
    private Integer personId;
    private String title;
    private String coverUrl;
    private String multiMediaUrl;
    private Integer type;

    public MultiMedia toMultiMedia(){
        // 转换为MultiMedia对象
        MultiMedia multiMedia = new MultiMedia();
        multiMedia.setClubId(clubId);
        multiMedia.setPersonId(personId);
        multiMedia.setTitle(title);
        multiMedia.setCoverUrl(coverUrl);
        multiMedia.setMultiMediaUrl(multiMediaUrl);
        multiMedia.setType(type);
        // 默认不推荐
        multiMedia.setSuggested(0);
        return multiMedia;
    }

}
